package com.gree.scmservice.entity.smbse;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

/**
 * Created by 180686 on 2021/3/16 20:28
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table("SMBSE05${comp}")
public class Smbse05 {

    @Name
    private String roid;
    private String dsca;
    private Integer rtyp;
    private String pano;

    public SysRoleMo toSysRoleMo(){
        SysRoleMo sysRoleMo = new SysRoleMo();
        sysRoleMo.setRoleKey(roid);
        sysRoleMo.setRoleName(dsca);
        sysRoleMo.setRtyp(rtyp);
        sysRoleMo.setPano(pano);
        return sysRoleMo;
    }
}
